package backend.majiong.yaku.yaku;

import backend.MainGame;
import backend.majiong.Player;
import backend.majiong.yaku.AbstractYaku;
import backend.majiong.yaku.HandCombo;

public class Sankantu extends AbstractYaku {

    @Override
    public boolean checkYaku(Player player, HandCombo combo, MainGame mainGame) {
        if (combo.getGangZi().size() == 3) {
            return true;
        }
        return false;
    }

    @Override
    public String getYakuName() {
        return "三杠子";
    }

    @Override
    public Integer getYakuNum(boolean isMenQing) {
        return 2;
    }

}
